/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Graph;

import java.util.Objects;

/**
 *
 * @author 江南才俊周涛涛
 */
public class Parents {
    public int x;
    public int y;
    
    public Parents(int x,int y){
        this.x=x;
        this.y=y;
    }

    Parents() {
 
    }
    
    public boolean equals(Object temp) {
        if (temp == this) {
            return true;
        }
        if (!(temp instanceof Parents)) {
            return false;
        }
        Parents parents = (Parents) temp;
        return x == parents.x && y == parents.y;
    }

    public int hashCode() {
        return Objects.hash(x, y);
    }
}
